import React,{useState,useEffect} from 'react'
import Header from './component/header'
import OwnForm from '../components/Form'
import {Card} from 'antd'
import './style/index.less'
import { ConsoleSqlOutlined } from '@ant-design/icons'

export default function Login(props:any) {
  const list = [
    {
      label:"Username",
      name:"username",
      required:true,
      type:'input',
      rules:{message: 'Please input your username!' },
    },
    {
      label:"Password",
      name:"password",
      type:'select',
      required:true
    }
  ]
  const options = [
    {value:1,label:'我是1'}
  ]
  console.log(list)
  return (
    <div className="Login">
      1245
        <Header></Header>
        <Card>
            <OwnForm propsList={JSON.stringify(list)} options={JSON.stringify(options)}></OwnForm>
        </Card>
    </div>
   
  )
}
